<a href='https://github.com/angular/angular.js/edit/v1.4.x/docs/content/error/ngPattern/noregexp.ngdoc?message=docs(error%2Fnoregexp)%3A%20describe%20your%20change...' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this Doc</a>


<h1>Error: ngPattern:noregexp
  <div><span class='hint'>Expected Regular Expression</span></div>
</h1>

<div>
    <pre class="minerr-errmsg" error-display="Expected {0} to be a RegExp but was {1}. Element: {2}">Expected {0} to be a RegExp but was {1}. Element: {2}</pre>
</div>

<h2>Description</h2>
<div class="description">
  <p>This error occurs when &#39;ngPattern&#39; is passed an expression that isn&#39;t a regular expression or doesn&#39;t have the expected format.</p>
<p>For more information on valid expression syntax, see &#39;ngPattern&#39; in <a href="api/ng/directive/input">input</a> directive docs.</p>

</div>


